//
//  RootViewController.h
//  SSNDB
//
//  Created by nako on 9/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ContactListViewController.h"
#import "EditPersonViewController.h"

@interface RootViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {

	ContactListViewController *contactListViewController;
	EditPersonViewController *editPersonViewController;
@public
	UITableView     *tableViewPersons;
	NSMutableArray  *arrayOfPersons;
	UIBarButtonItem *addButton;
	
}

/* ------------------------------------------- */
@property (nonatomic, retain)
ContactListViewController *contactListViewController;

@property (nonatomic, retain)
EditPersonViewController *editPersonViewController;

@property (nonatomic, retain) 
IBOutlet UITableView  *tableViewPersons;

@property (nonatomic, retain)
NSMutableArray  *arrayOfPersons;

@property (nonatomic, retain) 
UIBarButtonItem *addButton;

/* ------------------------------------------- */

- (BOOL) readAllPersons;
- (void) setDefaultNavigationBarButtons;
- (void) setEditingModeNavigationBarButtons;

/* ------------------------------------------- */

@end
